﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masterpage.Master" AutoEventWireup="true" CodeBehind="XepLichBayChoKhachHang.aspx.cs" Inherits="AirPlane.XepLichBayChoKhachHang" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 90%;
        }
         .style2
        {
            width: 281px;
            text-align:right;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <table align="center" cellpadding="0" cellspacing="0" class="style1">
        <tr>
            <td colspan="2">
               <h3 class="page-title-517">XẾP LỊCH BAY CHO KHÁCH HÀNG</h3></td>
        </tr>
       
        <tr>
            <td class="style2">
                Chuyến Bay: </td>
            <td>
              <span>
                 <asp:DropDownList ID="ddlChuyenBay" runat="server"
                  DataTextField="tenChuyenBay" DataValueField="ID_chuyenBay"   CssClass="ddlChuyenBay" ></asp:DropDownList>   
              </span>
            </td>
        </tr>
         
          <tr>
            <td class="style2">
                 Ngay Đi: </td>
            <td>
                 <asp:TextBox ID="datepickerdepart_chuyenBay" runat="server" CssClass="ddlngay1"></asp:TextBox> 
             
                   <asp:Button ID="Button1" runat="server" CssClass="button"  Text="Xem" 
                     onclick="Button1_Click" />
                
            </td>
        </tr>
          
    </table>
    <div style="margin-left:20px;margin-right:10px; margin-top:40px; margin-bottom:30px">
     <asp:Label ID="lbThongBao" runat="server" Text=""></asp:Label>
    <asp:GridView ID="gwDanhSachVe" runat="server" AutoGenerateColumns="False" 
            CellPadding="4" ForeColor="#333333" GridLines="Horizontal" CellSpacing="1" 
            onrowcancelingedit="gwDanhSachVe_RowCancelingEdit" 
            onrowediting="gwDanhSachVe_RowEditing" 
            onrowupdating="gwDanhSachVe_RowUpdating" AllowPaging="True" 
            onpageindexchanging="gwDanhSachVe_PageIndexChanging" PageSize="5" 
            HorizontalAlign="Center">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:TemplateField HeaderText="Mã Vé">
                <ItemTemplate>
                    <asp:Label ID="Label2" runat="server" Text='<%# Bind("ID_veBay") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="150px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Họ Tên Khách Hàng">
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text='<%# Bind("hoTen") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="150px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ngày Đặt">
                <ItemTemplate>
                    <asp:Label ID="Label4" runat="server" Text='<%# Bind("ngayDat") %>'></asp:Label>
                </ItemTemplate>
                <ItemStyle Width="100px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Ngày Đi">
                <ItemTemplate>
                    <asp:Label ID="Label5" runat="server" Text='<%# Bind("ngayDi") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="100px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Giờ Đi">
                <ItemTemplate>
                    <asp:Label ID="Label6" runat="server" Text='<%# Bind("gioDi") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="100px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Vị Trí Chỗ Ngồi">
                <EditItemTemplate>
                    <asp:TextBox ID="txtViTri" runat="server" Text='<%# Bind("viTri") %>' 
                        CssClass="txtViTri-update"></asp:TextBox>
                </EditItemTemplate>
                <ItemTemplate>
                    <asp:Label ID="Label1" runat="server" Text='<%# Bind("viTri") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" Width="100px" />
            </asp:TemplateField>
            <asp:CommandField ButtonType="Image" CancelImageUrl="~/images/delete.gif" 
                ShowEditButton="True" EditImageUrl="~/images/edit.gif" 
                UpdateImageUrl="~/images/save.gif" >
            <HeaderStyle Width="50px" />
            <ItemStyle Width="50px" />
            </asp:CommandField>
        </Columns>
        <EditRowStyle BackColor="#DFDFDF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />

<SortedAscendingCellStyle BackColor="#F5F7FB"></SortedAscendingCellStyle>

<SortedAscendingHeaderStyle BackColor="#6D95E1"></SortedAscendingHeaderStyle>

<SortedDescendingCellStyle BackColor="#E9EBEF"></SortedDescendingCellStyle>

<SortedDescendingHeaderStyle BackColor="#4870BE"></SortedDescendingHeaderStyle>
    </asp:GridView>
    </div>
</asp:Content>

